﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WisDom.DBContext
{
    /// <summary>
    /// 数据库上下文选项
    /// </summary>
    public class DbContextOption
    {
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string ConnectionString { get; set; } 
        /// <summary>
        /// 数据库类型
        /// </summary>
        public DbType DbType { get; set; } = DbType.MSSQLSERVER;
    }

    /// <summary>
    /// 数据库类型枚举
    /// </summary>
    public enum DbType
    {
        /// <summary>
        /// MS SQL Server
        /// </summary>
        MSSQLSERVER = 0,
     
        /// <summary>
        /// MySQL
        /// </summary>
        MYSQL,
        ///// <summary>
        ///// Sqlite
        ///// </summary>
        //SQLITE,
        ///// <summary>
        ///// in-memory database
        ///// </summary>
        //MEMORY,
        ///// <summary>
        ///// PostgreSQL
        ///// </summary>
        //NPGSQL,
        ///// <summary>
        ///// Oracle
        ///// </summary>
        //ORACLE,
    }
}
